﻿using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using System;

namespace H2.NET.Web.Pages.SMD.Model
{
    [Table]
    [Serializable]
    public class t_smd_Dealer : DataObject
    {
        #region Modified By Tony 20160524

        /// <summary>
        /// DealerID
        /// </summary>
        [ID]
        [Column]
        [IDENTITY]
        public int DealerID { get { return fDEALERID; } set { fDEALERID = value; EntityState.FieldChange("DealerID"); } }
        private int fDEALERID;
        public static FieldInfo _DealerID = new FieldInfo("t_smd_Dealer", "DealerID");

        /// <summary>
        /// DealerCode
        /// </summary>
        [Column]
        [IDENTITY]
        public string DealerCode { get { return fDEALERCODE; } set { fDEALERCODE = value; EntityState.FieldChange("DealerCode"); } }
        private string fDEALERCODE;
        public static FieldInfo _DealerCode = new FieldInfo("t_smd_Dealer", "DealerCode");

        /// <summary>
        /// Name
        /// </summary>
        [Column]
        [IDENTITY]
        public string Name { get { return fNAME; } set { fNAME = value; EntityState.FieldChange("Name"); } }
        private string fNAME;
        public static FieldInfo _Name = new FieldInfo("t_smd_Dealer", "Name");

        /// <summary>
        /// Region
        /// </summary>
        [Column]
        [IDENTITY]
        public string Region { get { return fREGION; } set { fREGION = value; EntityState.FieldChange("Region"); } }
        private string fREGION;
        public static FieldInfo _Region = new FieldInfo("t_smd_Dealer", "Region");

        /// <summary>
        /// Province
        /// </summary>
        [Column]
        [IDENTITY]
        public string Province { get { return fPROVINCE; } set { fPROVINCE = value; EntityState.FieldChange("Province"); } }
        private string fPROVINCE;
        public static FieldInfo _Province = new FieldInfo("t_smd_Dealer", "Province");

        /// <summary>
        /// CityName
        /// </summary>
        [Column]
        [IDENTITY]
        public string CityName { get { return fCITYNAME; } set { fCITYNAME = value; EntityState.FieldChange("CityName"); } }
        private string fCITYNAME;
        public static FieldInfo _CityName = new FieldInfo("t_smd_Dealer", "CityName");

        /// <summary>
        /// Deposit
        /// </summary>
        [Column]
        [IDENTITY]
        public decimal? Deposit { get { return fDEPOSIT; } set { fDEPOSIT = value; EntityState.FieldChange("Deposit"); } }
        private decimal? fDEPOSIT;
        public static FieldInfo _Deposit = new FieldInfo("t_smd_Dealer", "Deposit");

        /// <summary>
        /// Channel
        /// </summary>
        [Column]
        [IDENTITY]
        public string Channel { get { return fCHANNEL; } set { fCHANNEL = value; EntityState.FieldChange("Channel"); } }
        private string fCHANNEL;
        public static FieldInfo _Channel = new FieldInfo("t_smd_Dealer", "Channel");

        /// <summary>
        /// CityClass
        /// </summary>
        [Column]
        [IDENTITY]
        public string CityClass { get { return fCITYCLASS; } set { fCITYCLASS = value; EntityState.FieldChange("CityClass"); } }
        private string fCITYCLASS;
        public static FieldInfo _CityClass = new FieldInfo("t_smd_Dealer", "CityClass");

        /// <summary>
        /// ParentId
        /// </summary>
        [Column]
        [IDENTITY]
        public int ParentId { get { return fPARENTID; } set { fPARENTID = value; EntityState.FieldChange("ParentId"); } }
        private int fPARENTID;
        public static FieldInfo _ParentId = new FieldInfo("t_smd_Dealer", "ParentId");

        /// <summary>
        /// OwnerType
        /// </summary>
        [Column]
        [IDENTITY]
        public int? OwnerType { get { return fOWNERTYPE; } set { fOWNERTYPE = value; EntityState.FieldChange("OwnerType"); } }
        private int? fOWNERTYPE;
        public static FieldInfo _OwnerType = new FieldInfo("t_smd_Dealer", "OwnerType");


        /// <summary>
        /// OwnerType
        /// </summary>
        [Column]
        [IDENTITY]
        public string ShortName { get { return fOShortName; } set { fOShortName = value; EntityState.FieldChange("ShortName"); } }
        private string fOShortName;
        public static FieldInfo _ShortName = new FieldInfo("t_smd_Dealer", "ShortName");

        #endregion       

    }
}